Passed
Pull Request — master (#2)
by
unknown
02:25
created

index.d.ts ➔ resample   A

Complexity

Conditions 1

Size

Total Lines 18
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 18
rs 10
c 0
b 0
f 0
cc 1
1
// Type definitions for wave-resampler 1.0
2
// Project: https://github.com/rochars/wave-resampler
3
// Definitions by: Rafael da Silva Rocha <https://github.com/rochars>
4
// Definitions: https://github.com/rochars/wave-resampler
5
6
/**
7
 * Change the sample rate of the samples to a new sample rate.
8
 * @param {!Array|!TypedArray} samples The original samples.
9
 * @param {number} oldSampleRate The original sample rate.
10
 * @param {number} sampleRate The target sample rate.
11
 * @param {?Object} details The extra configuration, if needed.
12
 * @return {!Float64Array} the new samples.
13
 */
14
export function resample(
15
  samples: ArrayLike<number>,
16
  oldSampleRate: number,
17
  sampleRate: number,
18
  details?: object): ArrayLike<number>;
19